import request from '@/utils/request'

// 查询基金净值列表
export function listDealSecuritiesNet(query) {
  return request({
    url: '/net/dealSecuritiesNet/list',
    method: 'get',
    params: query
  })
}

// 查询基金净值详细
export function getDealSecuritiesNet(id) {
  return request({
    url: '/net/dealSecuritiesNet/' + id,
    method: 'get'
  })
}

// 保存基金净值
export function saveDealSecuritiesNet(data) {
  return request({
    url: '/net/dealSecuritiesNet/save',
    method: 'post',
    data: data
  })
}

// 删除基金净值
export function delDealSecuritiesNet(id) {
  return request({
    url: '/net/dealSecuritiesNet/' + id,
    method: 'delete'
  })
}

// 导出基金净值
export function exportDealSecuritiesNet(query) {
  return request({
    url: '/net/dealSecuritiesNet/export',
    method: 'get',
    params: query
  })
}

// 查询基金净值返回给Chart组件使用
export function dealSecuritiesNetCharts(params) {
  return request({
    url: '/net/dealSecuritiesNet/dealSecuritiesNetCharts',
    method: 'get',
    params: params
  })
}
